#coding: utf-8
import sys
import time

s_t = 0
c_t = 0

#DICT_VAR = {1:{22:33, 33:{101:2, 102:0}}}
DICT_VAR = {}
#DICT_VAR = {21: '\x00\x00\x00\x00\x0e\x00J\xd6\x0e\x00\xc6c', 22: 2,'empty':None, 'sub-dict': {253: [1,2,3,4,5,None,{'id':'inner'}], 254: 20001L,23: {253: None, 254: 20001L,23: {253: None, 254: 20001L,23: {253: None, 254: 20001L}}}}}
#DICT_VAR = {21: '\x00\x00\x00\x00\x0e\x00J\xd6\x0e\x00\xc6c', 22: 2,'empty':None, 'sub-dict': {253: [1,2,3,4,5,None,{'id':'inner'}]} , 55: (5,1,2,3)}
#DICT_VAR = {21: 123, 22: '\x00\x00\x00\x00\x0e\x00J\xd6\x0e\x00\xc6c',33:22,44:{2:[1,2,[0,1,2,3,{'aa':1},[0,1,2,3,{'aa':None,1:{'aa':1,1:{'aa':1,1:{'aa':1}}}}]]]}}
def sys_print(s):
    sys.stdout.write('[python]%s\n'%s)

def test_print():
    global s_t, c_t
    sys_print('==================python output begin ==================')
    sys_print(DICT_VAR)
    sys_print('==================python output end ==================')
    #if (DICT_VAR.get(101) == 'your sister!' and DICT_VAR.get('rate!') == 65534):
    #    c_t += 1
    #s_t += 1
    #sys_print('recv count %d / %d	\r'%(c_t, s_t))

def start_test():
    global s_t
    s_t = time.time()

def end_test():
    global s_t
    sys_print('==================python output begin ==================\n')
    sys_print('time: %f (s)\n'%(time.time() - s_t))
    sys_print('==================python output end ==================\n')
